/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sandbox.org.wads.elements;

import org.enhydra.shark.xpdl.XMLAttribute;
import org.enhydra.shark.xpdl.XMLComplexElement;

/**
 *
 * @author Nattasan W.
 */
public class Archetype extends XMLComplexElement {
  
  public Archetype(RequestDetails parent) {
    super(parent, true);
  }

  @Override
  protected void fillStructure() {
    XMLAttribute attrProId = new XMLAttribute(this, "Id", true);
    XMLAttribute attrProName = new XMLAttribute(this, "Name", false);
    XMLAttribute attrPath = new XMLAttribute(this, "Path", true);
    
    add(attrProId);
    add(attrProName);
    add(attrPath);
  }
  
  public String getId() {
    return get("Id").toValue();
  }
  
  public void setId(String val) {
    set("Id", val);
  }
  
  public String getName() {
    return get("Name").toValue();
  }
  
  public void setName(String val) {
    set("Name", val);
  }
  
  public String getPath() {
    return get("Path").toValue();
  }
  
  public void setPath(String path) {
    set("Path", path);
  }

}
